Crate sc_executor_wasmtime
source ·Expand description
Defines a WasmRuntime
that uses the Wasmtime JIT to execute.
You can choose a profiling strategy at runtime with
environment variable WASMTIME_PROFILING_STRATEGY
:
WASMTIME_PROFILING_STRATEGY | Effect |
---|---|
undefined | No profiling |
"jitdump" | jitdump profiling |
other value | No profiling (warning) |
Structs
Enums
The instantiation strategy to use for the WASM executor.
Functions
Create a new
WasmtimeRuntime
given the code. This function performs translation from Wasm to
machine code, which can be computationally heavy.The same as
create_runtime
but takes a path to a precompiled artifact,
which makes this function considerably faster than create_runtime
.Takes a
RuntimeBlob
and precompiles it returning the serialized result of compilation. It
can then be used for calling create_runtime
avoiding long compilation times.